﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Controls;
using System.Windows.Media.Imaging;

namespace VisualRemoteController
{
    class GUICommandDecoratorImageStrategy : GUICommandDecoratorStrategy
    {
        Image image = null;

        public GUICommandDecoratorImageStrategy(Image image)
        {
            this.image = image;
        }


        #region CommandGUIDecoratorStrategy Members

        public void ShowGUIExecute(BitmapImage ExecuteBitmapImage)
        {
            if(image != null && ExecuteBitmapImage != null)
                image.Source = ExecuteBitmapImage;
        }

        public void ShowGUIUndo(BitmapImage UndoBitmapImage)
        {
            if (image != null && UndoBitmapImage != null)
                image.Source = UndoBitmapImage;
        }

        #endregion
    }
}
